package cn.uai.activiti8.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;

import java.time.LocalDateTime;

/**
 * @desc 根实体，抽出公共字段
 * @author uai
 * @since 2025/7/30 17:43
 * @version 1.0
 */
public class Entity {

    /**
     * 主键
     */
    @Id(keyType = KeyType.Auto)
    private Integer id;

    /**
     * 用户创建时间
     */
    private LocalDateTime createTime;

    /**
     * 用户信息更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 状态，[0: 正常, 1: 已删除]
     */
    private Integer delete = 0;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getDelete() {
        return delete;
    }

    public void setDelete(Integer delete) {
        this.delete = delete;
    }
}
